﻿@model XSTDZ.ERP.Application.DataContracts.ClientInfoDto
@using XSTDZ.ERP.Infrastructure.Extentions
@{
    ViewBag.Title = " - 查看经销商";
}
@section header{
     <link href="@Url.Content("~/Content/Controls.css")" rel="stylesheet" type="text/css" />
 <link href="@Url.Content("~/Content/Form.css")" rel="stylesheet" type="text/css" />
}
<h2>查看经销商</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
 <table class="formtable">
    <thead>
        <tr>
            <th colspan="4">
            <div id="toptoolbar"></div>
            </th>
        </tr>
    </thead>
    <tr>
          <td class="title"> @Html.LabelFor(model => model.ClientName)</td>
        <td> @Html.TextBoxFor(model => model.ClientName, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.ClientName)
          @Html.HiddenFor(model => model.Id)
           @Html.HiddenFor(model => model.CreateID)
           @Html.HiddenFor(model => model.CreateTime)
         <input id="HidOrgCode" name="HidOrgCode" type="hidden" value="@ViewBag.orgCode" />
        </td>

        <td class="title">@Html.LabelFor(model => model.ClientCode)</td>
        <td>  @Html.TextBoxFor(model => model.ClientCode, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ClientCode)
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.ShortName)</td>
        <td> @Html.TextBoxFor(model => model.ShortName, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.ShortName)
        </td>

        <td class="title"></td>
        <td> 
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.ProvincialID)</td>
        <td>
        @* @Html.TextBoxFor(model => model.ProvinceName, new { @class = "text disablebg", @readonly = "readonly" })*@
         @Html.DropDownListFor(model => model.ProvincialID, ViewBag.Provoices as IEnumerable<SelectListItem>, new { @class = "select" })
          @Html.HiddenFor(model => model.ProvincialID)
        @Html.ValidationMessageFor(model => model.ProvincialID)
        </td>

        <td class="title">@Html.LabelFor(model => model.CityID)</td>
        <td> @* @Html.TextBoxFor(model => model.CityName, new { @class = "text disablebg", @readonly = "readonly" })*@
       @Html.DropDownListFor(model => model.CityID, ViewBag.Cities as IEnumerable<SelectListItem>, new { @class = "select" })
        @Html.HiddenFor(model => model.CityID)
            @Html.ValidationMessageFor(model => model.CityID)
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.ClientAddress)</td>
        <td> @Html.TextBoxFor(model => model.ClientAddress, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.ClientAddress)
        </td>

        <td class="title">@Html.LabelFor(model => model.PostCode)</td>
        <td>  @Html.TextBoxFor(model => model.PostCode, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.PostCode)
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.Http)</td>
        <td> @Html.TextBoxFor(model => model.Http, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.Http)
        </td>

        <td class="title">@Html.LabelFor(model => model.ClientPhone)</td>
        <td>  @Html.TextBoxFor(model => model.ClientPhone, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ClientPhone)
         </td>
    </tr>
    <tr>

        <td class="title">@Html.LabelFor(model => model.ClientFax)</td>
        <td>  @Html.TextBoxFor(model => model.ClientFax, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.ClientFax)
         </td>
  

        <td class="title">@Html.LabelFor(model => model.Email)</td>
        <td>  @Html.TextBoxFor(model => model.Email, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.Email)
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.BankName)</td>
        <td> @Html.TextBoxFor(model => model.BankName, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.BankName)
        </td>

        <td class="title">@Html.LabelFor(model => model.AccountNnmber)</td>
        <td>  @Html.TextBoxFor(model => model.AccountNnmber, new { @class = "text disablebg", @readonly = "readonly" })
            @Html.ValidationMessageFor(model => model.AccountNnmber)
         </td>
    </tr>

     <tr>
          <td class="title"> @Html.LabelFor(model => model.Describe)</td>
        <td> @Html.TextBoxFor(model => model.Describe, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.Describe)
        </td>

        <td class="title">@Html.LabelFor(model => model.ClientProperty)</td>
        <td> 
        @Html.DropDownListFor(model => model.ClientProperty, ViewBag.ClientProperty as IEnumerable<SelectListItem>, new { @class = "select"})
            @Html.ValidationMessageFor(model => model.ClientProperty)
         </td>
    </tr>
     <tr>
          <td class="title"> @Html.LabelFor(model => model.ResponsibleDeptID)</td>
        <td>
        @Html.TextBoxFor(model => model.ResponsibleDeptName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.ResponsibleDeptID)
        @Html.ValidationMessageFor(model => model.ResponsibleDeptID)
        </td>

        <td class="title">@Html.LabelFor(model => model.ResponsiblePersonID)</td>
        <td>  @Html.TextBoxFor(model => model.ResponsiblePersonName, new { @class = "text disablebg", @readonly = "readonly" })
         @Html.HiddenFor(model => model.ResponsiblePersonID)
            @Html.ValidationMessageFor(model => model.ResponsiblePersonID)
         </td>
    </tr>

    <tr>
          <td class="title"> @Html.LabelFor(model => model.Remarks)</td>
        <td> @Html.TextBoxFor(model => model.Remarks, new { @class = "text disablebg", @readonly = "readonly" })
        @Html.ValidationMessageFor(model => model.Remarks)
        </td>
        <td class="title"></td>
        <td> 
         </td>
    </tr>
    </table>
}

<div class="wp100">
<div id="ClitentLinksGrid" style="margin-top:20px" ></div>
</div>

<script type="text/javascript" src="@Url.Content("~/Content/js/Client/Add.js")"></script>